package com.hpc;

import entity.user;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

@SpringBootTest
@RunWith(SpringRunner.class)
public class test {
    @Autowired
    com.hpc.mapper.userMapper userMapper;
    @Test
    public void test01(){
        List<user> all = userMapper.findAll();
        for (user user : all) {
            System.out.println(user.getNickname());
        }
    }
}
